package com.xjoyt.pay.master.dao;

import java.util.List;
import java.util.Map;

import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.DistributorProfitGroupParam;
import com.xjoyt.pay.master.params.DistributorProfitPageParam;
import com.xjoyt.pay.master.po.DistributorProfit;

public interface DistributorProfitRepositoryCustom {

	DistributorProfit findOneByOrderIdAndDistributorId(String orderId, String distributorId);

	PageResult<DistributorProfit> loadPage(PageParam<DistributorProfitPageParam> param);

	List<Map<String, Object>> sum(List<String> distributorIds, DistributorProfitGroupParam param);
	
	List<Map<String, Object>> profitSum(List<String> distributorIds, DistributorProfitPageParam param);

}
